/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package page;

import dbase.DBconnection;
import dbase.DBanggota;
import dbase.DBkendaraan;
import dbase.DBpengguna;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import model.anggota;
import model.kendaraan;
import model.pengguna;
/**
 *
 * @author elfahruzzaman
 */
public class GoLogout {

    HttpServletRequest request;

    public GoLogout(HttpServletRequest request) {
        this.request = request;
    }
public String GoLogout() throws Exception {
        HttpSession session = request.getSession();
        session.removeAttribute("uname");
        session.invalidate();
        return "index.jsp";
    }
}
